﻿module Wpf

open System
open System.Windows
open System.Windows.Controls
open System.Windows.Navigation

// Navigation window.
let navWind = Application.LoadComponent(new System.Uri("/SEOReporter;component/NavWin.xaml", UriKind.Relative)) :?> NavigationWindow

// Page one.
let page1 = Application.LoadComponent(new System.Uri("/SEOReporter;component/page1.xaml", UriKind.Relative)) :?> Page
let projName = page1.FindName "project" :?> TextBox
let inputTxtBox = page1.FindName "inputurl" :?> TextBox
let processUrlBtn = page1.FindName "processbtn" :?> Button
let depthTxtBox = page1.FindName "depth" :?> TextBox
let limitTxtBox = page1.FindName "limit" :?> TextBox
projName.Focus() |> ignore

// Page two.
let page2 = Application.LoadComponent(new System.Uri("/SEOReporter;component/page2.xaml", UriKind.Relative)) :?> Page
let box = page2.FindName "urls" :?> ListBox